<?php
/* @var $this NewsController */

$this->breadcrumbs=array(
	'Tin tức',
);
?>
<div class="list-news">
   <ul>
      <?php
      if(count($list) > 0){
         foreach($list as $item){
            $link = $model->linkDetail($item->news_id,$item->news_title);  
            ?>
         <li class="news-item">
            <div class="img-wrap left">
               <a href="<?php echo $link?>">
                  <img alt="<?php echo $item->news_title;?>" src="<?php echo Yii::app()->request->baseUrl.'/uploads/pictures/news/thumb_'.$item->news_image;?>" />
               </a>
            </div>
            <div class="text">
               
               <div class="title">
                  <a href="<?php echo $link;?>" class="bold main-color"><?php echo $item->news_title;?></a>
               </div>
               <div class="date"><?php echo date('H:i - d/m/Y',$item->news_date_create);?></div>
               <div class="summary">
                  <?php echo Str::cutString(Str::removeHTML($item->news_content),200);?>
               </div>
            </div>
         </li>
         <?php }?>
      <?php }?>
   </ul>
</div>
<?php $pagination->render();?>
